package com.dragon7531.bdemo.service;

import com.dragon7531.bdemo.domain.MeAccount;
import com.dragon7531.bdemo.domain.Student;
import com.dragon7531.bdemo.domain.YouAccount;
import com.dragon7531.bdemo.mapper.MeAccountMapper;
import com.dragon7531.bdemo.mapper.StudentMapper;
import com.dragon7531.bdemo.mapper.YouAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class StudentService {
    @Autowired
    private StudentMapper studentMapper;

   public void insert(Student student){
       studentMapper.insert(student);
   }
   public void update(Student student){
       studentMapper.updateByPrimaryKeySelective(student);
   }

}
